package com.hfxt.j96springboot.service.impl;


import com.hfxt.j96springboot.dao.TbRoleDao;
import com.hfxt.j96springboot.entity.TbRole;
import com.hfxt.j96springboot.service.TbRoleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service("tbRoleServiceImpl")
@Transactional(propagation = Propagation.REQUIRED)
public class TbRoleServiceImpl implements TbRoleService {

    @Resource
    protected TbRoleDao tbRoleDao;
    public List<TbRole> getRolesByUserid(Integer userid) {
        return tbRoleDao.getRolesByUserid(userid);
    }
}
